CC			= gcc
CFLAGS		= -Wall -O3
SOURCES		= $(wildcard *.c)
INCLUDES	= -I.
OBJ			= $(patsubst %.c, %.o, $(SOURCES))
TARGET		= drawBoard

$(TARGET):$(OBJ)
	$(CC) $(OBJ) -o $(TARGET)
 
#compile
%.o: %.c
	$(CC) $(INCLUDES) -c $(CFLAGS) $< -o $@

.PHONY:clean
clean:
	rm -rf $(OBJ) $(TARGET)
